﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
		<meta content="yes" name="apple-mobile-web-app-capable">
		<meta content="black" name="apple-mobile-web-app-status-bar-style">
		<meta content="telephone=no" name="format-detection">
		<title><spring:message code="download" /></title>
	</head>
    <body>
    <a href="?locale=zh_CN">简体中文</a>
    <a href="?locale=en_US">English</a>
    	<div>
    		<table border="1px;">
    			<thead>
    				<tr>
    					<th>用户id</th>
    					<th>用户名</th>
    					<th>操作</th>
    				</tr>
    			</thead>
    			<tbody>
    				<c:forEach items="${users}" var="user">
	    				<tr>
	    					<td>${user.userId}</td>
	    					<td>${user.userName}</td>
	    					<td><a href="<%=request.getContextPath()%>/user/${user.userId}">编辑</a></td>
	    				</tr>
					</c:forEach>
    			</tbody>
    		</table>
    	</div>
	</body>
</html>